Skip to content

Fix token expired race and improve panic messages#334

Merged
tolik518 merged 4 commits intotolik518:masterfrom
Aras14HD:fix-token_expired-race
Mar 7, 2026
Merged

Fix token expired race and improve panic messages#334
tolik518 merged 4 commits intotolik518:masterfrom
Aras14HD:fix-token_expired-race

Conversation

@Aras14HD
Copy link
Collaborator

@Aras14HD Aras14HD commented Mar 7, 2026

This aims to fix crashes due to non-json responses, likely due to expired tokens.

In addition, as we would have been able to be more sure about the issue, if we had more context in the errors, this improves these. For that it replaces .expect("...") with .unwrap_or_else(|err| panic!("...: {err} in {response_text})).
It also does similar for most expects (pretty much where possible).

Resolves #270

@Aras14HD Aras14HD force-pushed the fix-token_expired-race branch from 51bcf8a to 75d6ee6 Compare March 7, 2026 21:43
@tolik518 tolik518 merged commit 648012f into tolik518:master Mar 7, 2026
6 checks passed
@Aras14HD Aras14HD deleted the fix-token_expired-race branch March 7, 2026 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Crash from non-Json status 200 response

2 participants